finding min and max in the list in python descending